#!/bin/bash

# 生成测试文件，大小分别是1K、16K、64K、256K、1M、4M、2G


# write_once_case: 文件大小是1KB
dd if=/dev/random of=write_once_1K bs=1024 count=1
dd if=/dev/random of=write_once_16K bs=4094 count=4
dd if=/dev/random of=write_once_64K bs=4094 count=16
dd if=/dev/random of=write_once_256K bs=4094 count=64
dd if=/dev/random of=write_once_1M bs=4094 count=256
dd if=/dev/random of=write_once_4M bs=4094 count=1024

dd if=/dev/random of=block bs=1K count=1



# write_many-case: 文件大小2GB
dd if=/dev/random of=write_many_2G bs=1M count=2048


